package vaccine.appointment.system.family.dataobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("family")
public class Family {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * person表id
     */
    @TableField(value = "person_id")
    private Integer personId;

    /**
     * user表id
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 家属关系
     * 0--"父亲"
     * 1--"母亲"
     * 2--"配偶"
     * 3--"子女"
     * 4--"兄弟姐妹"
     * 5--"其他"
     */
    @TableField(value = "relationship")
    private Integer relationship;

    /**
     * 逻辑删除标识符
     * 0--没有删除
     * 1--已删除
     */
    @TableField("del_flg")
    private Integer delFlg;
}
